package com.liang.bishi.mega;

/**
 * 使用多线程交替打印奇、偶数
 */
public class Test02 {
    public static void main(String[] args) {

    }

    public synchronized void test01() {
        System.out.println("test01");
    }

    public void test02() {
        synchronized (this) {
            System.out.println("test02");
        }
    }
}
